const AuthenticationController = require('./controllers/AuthenticationController')

const AuthenticationControllerPolicy = require('./policies/AuthenticationControllerPolicy')

const OrderController = require('./controllers/OrderController')

module.exports = (app) => {
  app.post('/register', AuthenticationControllerPolicy.register, AuthenticationController.register)
  app.post('/AdminLogin', AuthenticationController.AdminLogin)
  app.post('/submitOrder', OrderController.submitOrder)
  app.post('/getOrdersByCondition', OrderController.getOrdersByCondition)
}
